/*
 * @Description:
 * @Version: 1.0
 * @Autor: gaoluo
 * @Date: 2021-10-14 08:55:59
 * @LastEditors: gaoluo
 * @LastEditTime: 2021-12-06 11:39:35
 * @FilePath: /nhw/src/api/statisticalAnalysis.js
 */

import request from './index'

//统计分析

/**
 * 隐患统计总数量
 * @param {*} params type
 * @returns 
 */
export async function queryRiskNum(params = {}) {
  return await request.get('/chart/queryRiskNum.ajax', {
    params
  })
}

/**
* 隐患类别统计
* @param {*} params type
* @returns 
*/
export async function queryRiskCategoryNum(params = {}) {
  return await request.get('/chart/queryRiskCategoryNum.ajax', {
    params
  })
}

/**
* 部门隐患整改统计
* @param {*} params type
* @returns 
*/
export async function queryRiskDepartNum(params = {}) {
  return await request.get('/chart/queryRiskDepartNum.ajax', {
    params
  })
}

/**
* 获取安全检查情况统计
* @param {*} params type
* @returns 
*/
export async function queryRiskCheck(params = {}) {
  return await request.get('/chart/queryRiskCheck.ajax', {
    params
  })
}

//巡检统计

/**
* 巡检统计总数量
* @param {*} params 
* @returns 
*/
export async function queryInspectionNum(params = {}) {
  return await request.get('/chart/queryInspectionNum.ajax', {
    params
  })
}

/**
* 巡检情况统计
* @param {*} params 
* @returns 
*/
export async function queryInspectionSituation(params = {}) {
  return await request.get('/chart/queryInspectionSituation.ajax', {
    params
  })
}

/**
* 巡检异常情况统计
* @param {*} params 
* @returns 
*/
export async function queryExceptionSituation(params = {}) {
  return await request.get('/chart/queryExceptionSituation.ajax', {
    params
  })
}

/**
* 巡检统计统计情况排行
* @param {*} params 
* @returns 
*/
export async function queryCheckSituation(params = {}) {
  return await request.get('/chart/queryCheckSituation.ajax', {
    params
  })
}

// 事故统计

export async function queryAccidentInformation(params = {}) {
  return await request.get('/chart/queryAccidentInformation.ajax', {
    params
  })
}

//作业统计
/**
 * 作业统计数量
 * @param {*} params  type
 * @returns 
 */
export async function queryWorkNum(params) {
  return await request.get('/chart/queryWorkNum.ajax', {
    params
  })
}

/**
 * 作业分析
 * @param {*} params  type  category orgNo
 * @returns 
 */
export async function queryTotalJobs(params) {
  return await request.get('/chart/queryTotalJobs.ajax', {
    params
  })
}

/**
 * 作业统计数量
 * @param {*} params  orgNo
 * @returns 
 */
export async function queryHalfYearWork(params) {
  return await request.get('/chart/queryHalfYearWork.ajax', {
    params
  })
}

/**
 * 入园方式
 * @param {*} params 
 * @returns 
 */
export async function getScenicComIn(params) {
  return await request.get("/chart/getScenicComIn.ajax", {
    params
  })
}

export async function getGroupComIn(params) {
  return await request.get('/chart/getGroupComIn.ajax', {
    params
  })
}